package com.yan.repository;

import com.yan.bean.Resume;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

/**
 * TODO
 *
 * @Author: 汪焰
 * @Date: 2021/5/28 20:29
 */
public interface ResumeRepository extends MongoRepository<Resume,String> {

    List<Resume> findByNameEquals(String name);

    List<Resume> findByNameEqualsAndExpectSalaryEquals(String name, double expectSalary);

    //默认是相等的
    List<Resume> findByNameAndExpectSalary(String name, double expectSalary);

}
